package cn.tedu._06interceptor.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Tag(name = "用户管理")
@Slf4j
@RestController
@RequestMapping("v1/user/")
public class UserController {
    @PostMapping("login")
    @Operation(summary = "用户登录")
    @ApiOperationSupport(order = 10)
    public String login() {
        return "用户登录成功！";
    }
    @Operation(summary = "用户注册")
    @PostMapping("reg")
    @ApiOperationSupport(order = 20)

    public String reg() {
        return "用户注册成功！";
    }
    @Operation(summary = "用户退出")
    @PostMapping("logout")
    @ApiOperationSupport(order = 30)
    public String logout() {
        return "用户退出成功！";
    }
}
